package model;

import java.util.Date;

public class Record {
    private int id;
    private int studentId;     // 学生ID
    private int groupId;       // 小组ID
    private Date recordDate;   // 记录日期
    private boolean attendance;// 考勤情况
    private int score;         // 答题得分
    private String notes;      // 备注

    public Record(int id, int studentId, int groupId, Date recordDate, 
                 boolean attendance, int score, String notes) {
        this.id = id;
        this.studentId = studentId;
        this.groupId = groupId;
        this.recordDate = recordDate;
        this.attendance = attendance;
        this.score = score;
        this.notes = notes;
    }

    // Getters and Setters
    public int getId() { return id; }
    public void setId(int id) { this.id = id; }
    public int getStudentId() { return studentId; }
    public void setStudentId(int studentId) { this.studentId = studentId; }
    public int getGroupId() { return groupId; }
    public void setGroupId(int groupId) { this.groupId = groupId; }
    public Date getRecordDate() { return recordDate; }
    public void setRecordDate(Date recordDate) { this.recordDate = recordDate; }
    public boolean isAttendance() { return attendance; }
    public void setAttendance(boolean attendance) { this.attendance = attendance; }
    public int getScore() { return score; }
    public void setScore(int score) { this.score = score; }
    public String getNotes() { return notes; }
    public void setNotes(String notes) { this.notes = notes; }
} //记录一个学生或一个小组的得分信息